package com.yc.navy.goods.vo;

import com.yc.navy.goods.enums.ResultEnum;

public class StreamVO {
	private Integer code = 0; //如果有数据必定为0
	private String msg;
	private Integer count = 0;
	private Object data;
	
	public StreamVO() {
		super();
	}
	
	public StreamVO(ResultEnum enums) {
		this.code = enums.getCode();
		this.msg = enums.getMessage();
	}
	
	public StreamVO(ResultEnum enums,Object data) {
		this.code = enums.getCode();
		this.msg = enums.getMessage();
		this.data = data;
		this.count = 10;
	}
	
	public StreamVO(Integer code,String msg) {
		this.code = code;
		this.msg = msg;
	}
	
	public StreamVO(Object data,Integer count) {
		this.data = data;
		this.count = count;
	}

	@Override
	public String toString() {
		return "StreamVO [code=" + code + ", msg=" + msg + ", count=" + count + ", data=" + data + "]";
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}
}
